<?php
namespace app\common\validate;

/**
 * PurchaseValidate
 */
class PurchaseValidate extends BaseValidate
{
	protected $rule = [
	    'fid' => 'require|integer',
        'goods_list' => 'require|isArray',
    ];
    
    protected $message=[
        'fid.require' => 'fid必填',
        'fid.integer' => 'fid数据类型非法',
        'goods_list' => 'goods_list参数错误'
    ];

    protected $scene = [
        //'lists' => [],
        'detail' => ['fid'],
        'confirm' => ['fid'],
        'cancel' => ['fid'],
        'generate' => ['fid','goods_list']
    ];


}